package com.spring.nio.core.channel.pipeline;

import com.spring.nio.core.channel.context.AbstractChannelContext;
import com.spring.nio.core.channel.handler.AbstractChannelHandler;

/**
 * @Auther: YSFY
 * @Date: 2020-11-21 20:32
 * @Pacage_name: com.spring.nio.core.channel.pipeline
 * @Project_Name: nio-server
 * @Description: 处理管道ChannelPipeLine
 */

public interface ChannelPipeLine {

    /**
     * 添加ChannelHandler
     * @param channelContext
     * @param abstractChannelHandler
     * @return channelHandler
     * */
    ChannelPipeLine addHandler(AbstractChannelContext channelContext, AbstractChannelHandler abstractChannelHandler);
}
